package com.jmtao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

import java.util.Optional;
import java.util.stream.Stream;

/**
 * 注册中心
 * @author k
 */
@SpringBootApplication
@EnableEurekaServer
public class RegistryServerApplication {
	private static final Logger log = LoggerFactory.getLogger(RegistryServerApplication.class);

	public static void main(String[] args) {
		Optional<String> op = Stream.of(args).reduce((s1, s2) -> s1 + " " + s2);

		if(op.isPresent()){
			log.info("the application args ==> {}", op.get());
		}
		SpringApplication.run(RegistryServerApplication.class, args);
	}
}
